grailsHome = Ant.project.properties."environment.GRAILS_HOME"

includeTargets << new File ( "${grailsHome}/scripts/Package.groovy" ) 
includeTargets << new File( "${grailsHome}/scripts/Bootstrap.groovy" )

cloudToolsService = null

target(initCloudToolsService: 'grabs cloudToolsService from the application context'){
	depends( checkVersion, configureProxy, packageApp, classpath)
	classLoader = new URLClassLoader([classesDir.toURI().toURL()] as URL[], rootLoader)
	Thread.currentThread().setContextClassLoader(classLoader)
	loadApp()
	configureApp()
	cloudToolsService = appCtx.getBean("cloudToolsService")
}
